package com.dmap.knowledge.vo;

import com.dmap.knowledge.po.Article;

import java.io.Serializable;

/**
 * @Author zmh
 * @date 18-7-18 上午11:09
 */
public class ArticleLinkVo implements Serializable {
    private String articleId;       //文章id
    private String coverUrl;        //文章url
    private String title;           //文章标题
    private String articleUrl;      //aritcle地址
    public ArticleLinkVo() {
    }
    public ArticleLinkVo(Article article ) {
        if(article.getId()!= null){this.articleId = article.getId().toString();}
        if(article.getCoverUrl()!= null){this.coverUrl = article.getCoverUrl();}
        if(article.getTitle()!= null){this.title = article.getTitle();}
        if(article.getArticleUrl()!= null){this.articleUrl = article.getArticleUrl();}
    }

    public String getArticleUrl() {
        return articleUrl;
    }

    public void setArticleUrl(String articleUrl) {
        this.articleUrl = articleUrl;
    }

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
